package ch08;

class ExceptionEx18 {
	public static void main(String[] args) {
		try{
			method1();
		}catch(Exception e){
			System.out.println("exception is handled in main().");
		}
		
	}

	static void method1() throws Exception{
		try {
			throw new Exception();
		} catch (Exception e) {
			System.out.println("exception is handled in method1().");
			
		}
	}
}
/*
 * exception is handled in method1(). exception is handled in main().
 */